﻿// TestClient.TagFile.xaml.cs
// ----------------------------------------------------------------------------
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.html)
// ----------------------------------------------------------------------------
// HighSpeed-Solutions, LLC
// Copyright (c) 2001-2010
// ----------------------------------------------------------------------------
// File:       TagFile.xaml.cs
// Author:     HSS\gbanta
// Created:    07/16/2011
// Modified:   07/16/2011
// ----------------------------------------------------------------------------
using System.Windows;
using System.Windows.Controls;

namespace TestClient
{
	public partial class TagFile : ChildWindow
	{
		public TagFile()
		{
			InitializeComponent();
			this.TagText = string.Empty;
		}

		public string TagText { get; set; }

		protected override void OnOpened()
		{
			this.txtTag.Text = this.TagText;
			base.OnOpened();
		}

		private void OKButton_Click(object sender, RoutedEventArgs e)
		{
			this.TagText = this.txtTag.Text;
			this.DialogResult = true;
		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = false;
		}
	}
}